﻿<UserControl x:Class="DrawWorkflow.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="800" Height="500">
    <Grid x:Name="LayoutRoot" Background="White" ShowGridLines="True">
        <Grid.RowDefinitions>
            <RowDefinition  Height="30"></RowDefinition>
            <RowDefinition  Height="*"></RowDefinition>
            <RowDefinition  Height="30"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="60"></ColumnDefinition>
            <ColumnDefinition Width="60"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Button x:Name="buttonDrawLine" BorderBrush="Azure" Background="Yellow" Grid.Column="0" Grid.Row="0" Content="画线" Click="buttonDrawLine_Click">
          
        </Button>
       
        <Canvas x:Name="canvas4Draw" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Background="AliceBlue" MouseLeftButtonDown="Canvas_MouseLeftButtonDown" MouseLeftButtonUp="Canvas_MouseLeftButtonUp" MouseMove="Canvas_MouseMove">
            <Line x:Name="lineExample" Stroke="Black" StrokeThickness="1" X1="20" X2="40" Y1="20" Y2="40" ></Line>
            <Ellipse Stroke="Black" Height="6" Width="6" Canvas.Left="50" Canvas.Top="50"></Ellipse>
        </Canvas>
        <TextBlock x:Name="textBlockStatus" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Text="状态"></TextBlock>
       
    </Grid>
    
</UserControl>
